POV-Ray : Newsgroups : povray.general : Blender Vs PovRay : Re: Blender Vs PovRay Server Time
31 Oct 2024 21:23:31 EDT (-0400)
  Re: Blender Vs PovRay  
From: stbenge
Date: 24 Oct 2008 22:08:12
Message: <49027f8c@news.povray.org>
Cousin Ricky wrote:
> stbenge <THI### [at] hotmailcom> wrote:
>>    #declare V=V+1/100;
> 
> Do you often use fractional loop counters?

Yes, that's my automatic way of laying out a loop. I do this because 
variables which go from 0 to 1 are easier to implement in color_maps and 
sin/cos statements. It wasn't needed for this particular loop, but since 
POV-Ray treats all variables as floats, I can't see how it could harm 
things. I should have made it different so the code was easier to read, 
but like I said, I'm on automatic when writing code sometimes ;)

> Lovely pattern.

Thanks!

Sam


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.